import { IsNumber } from 'class-validator';

export class VoteDto {
  @IsNumber(
    {
      allowNaN: false,
      allowInfinity: false,
    },
    {
      message: JSON.stringify({ message: '候选人编号错误', code: 6000 }),
    },
  )
  readonly candidateId: number;
}
